package com.tbit.main.constant;

import java.util.HashMap;
import java.util.Map;

/**
 * @author LMY
 * @create 2022-02-25 11:52
 * 设备功能
 */
public class MachineFunctionConstant {


    /**
     * 头盔锁
     */
    public static final int MACHINE_TYPE_HELMAT = 1;
    public static final String MACHINE_TYPE_HELMAT_NAME = "头盔锁";
    /**
     * 垂直停车
     */
    public static final int MACHINE_TYPE_VERTICAL = 2;
    public static final String MACHINE_TYPE_VERTICAL_NAME = "垂直停车";
    /**
     * 高精度定位
     */
    public static final int MACHINE_TYPE_HIGH = 3;
    public static final String MACHINE_TYPE_HIGH_NAME = "高精度定位";
    /**
     * 脚撑
     */
    public static final int MACHINE_TYPE_JC = 4;
    public static final String MACHINE_TYPE_JC_NAME = "脚撑";
    /**
     * 道钉
     */
    public static final int MACHINE_TYPE_BLE = 5;
    public static final String MACHINE_TYPE_BLE_NAME = "道钉";
    /**
     * rfid
     */
    public static final int MACHINE_TYPE_RFID = 6;
    public static final String MACHINE_TYPE_RFID_NAME = "rfid";
    /**
     * 摄像头
     */
    public static final int MACHINE_TYPE_WEBCAM = 7;
    public static final String MACHINE_TYPE_WEBCAM_NAME = "摄像头0";
    /**
     * 仪表盘
     */
    public static final int MACHINE_TYPE_YBP = 8;
    public static final String MACHINE_TYPE_YBP_NAME = "仪表盘";
    /**
     * 文明骑行摄像头
     */
    public static final int MACHINE_TYPE_WMQX = 9;
    public static final String MACHINE_TYPE_WMQX_NAME = "文明骑行摄像头1";
    /**
     * 智能头盔锁
     */
    public static final int MACHINE_TYPE_ZNTKS = 10;
    public static final String MACHINE_TYPE_ZNTKS_NAME = "智能头盔锁";
    /**
     * 蓝牙头盔锁
     */
    public static final int MACHINE_TYPE_LYTKS = 11;
    public static final String MACHINE_TYPE_LYTKS_NAME = "蓝牙头盔锁";

    /**
     * 头盔摄像头
     */
    public static final int MACHINE_TYPE_LYTKS_ONE = 12;
    public static final String MACHINE_TYPE_LYTKS_ONE_NAME = "摄像头2路";

    /**
     * 绿T标线摄像头
     */
    public static final int MACHINE_TYPE_LYTKS_T = 13;
    public static final String MACHINE_TYPE_LYTKS_T_NAME = "绿T标线摄像头";

    /**
     * 充电桩
     */
    public static final int MACHINE_TYPE_CDZ = 14;
    public static final String MACHINE_TYPE_CDZ_NAME = "充电桩";

    public static final int PHOTO_RETURN_CAR = 19;
    public static final String PHOTO_RETURN_CAR_NAME = "拍照还车";

    public static final int MACHINE_TYPE_CAR = 25;
    public static final String MACHINE_TYPE_CAR_NAME = "旧版自行车";

    public static final int MACHINE_TYPE_MTS = 26;
    public static final String MACHINE_TYPE_MTS_NAME = "马蹄锁";

    /**
     * 无定位车辆
     */
    public static final int MACHINE_TYPE_NOPOINT = 50;
    public static final String MACHINE_TYPE_NOPOINT_NAME = "无定位车辆";

    /**
     * RGPS
     */
    public static final int MACHINE_TYPE_RGPS = 51;
    public static final String MACHINE_TYPE_RGPS_NAME = "RGPS定位";


    public static final Map<Integer, String> FUNCTION_NAME_MAP = new HashMap<>();

    static {
        FUNCTION_NAME_MAP.put(MACHINE_TYPE_HELMAT, "头盔锁");
        FUNCTION_NAME_MAP.put(MACHINE_TYPE_VERTICAL, "垂直停车");
        FUNCTION_NAME_MAP.put(MACHINE_TYPE_HIGH, "高精度定位");
        FUNCTION_NAME_MAP.put(MACHINE_TYPE_JC, "脚撑");
        FUNCTION_NAME_MAP.put(MACHINE_TYPE_BLE, "道钉");
        FUNCTION_NAME_MAP.put(MACHINE_TYPE_RFID, "rfid");
        FUNCTION_NAME_MAP.put(MACHINE_TYPE_WEBCAM, "摄像头");
        FUNCTION_NAME_MAP.put(MACHINE_TYPE_YBP, "仪表盘");
        FUNCTION_NAME_MAP.put(MACHINE_TYPE_WMQX, "文明骑行");
        FUNCTION_NAME_MAP.put(MACHINE_TYPE_ZNTKS, "智能头盔锁");
        FUNCTION_NAME_MAP.put(MACHINE_TYPE_LYTKS, "蓝牙头盔锁");
        FUNCTION_NAME_MAP.put(MACHINE_TYPE_LYTKS_ONE, "强制佩戴头盔");
        FUNCTION_NAME_MAP.put(MACHINE_TYPE_LYTKS_T, "绿T标线摄像头");
        FUNCTION_NAME_MAP.put(MACHINE_TYPE_CDZ, "充电桩");
        FUNCTION_NAME_MAP.put(PHOTO_RETURN_CAR, "拍照还车");
        FUNCTION_NAME_MAP.put(MACHINE_TYPE_NOPOINT, "无定位车辆");
        FUNCTION_NAME_MAP.put(MACHINE_TYPE_CAR, "旧版自行车");
        FUNCTION_NAME_MAP.put(MACHINE_TYPE_MTS, "马蹄锁");
        FUNCTION_NAME_MAP.put(MACHINE_TYPE_RGPS, "RGPS定位");
    }
}
